import request from '@/utils/request'

// 查询操作员列表
export function listOplist(query) {
  return request({
    url: '/system/oplist/list',
    method: 'get',
    params: query
  })
}

// 查询操作员详细
export function getOplist(opid) {
  return request({
    url: '/system/oplist/' + opid,
    method: 'get'
  })
}

// 新增操作员
export function addOplist(data) {
  return request({
    url: '/system/oplist',
    method: 'post',
    data: data
  })
}

// 修改操作员
export function updateOplist(data) {
  return request({
    url: '/system/oplist',
    method: 'put',
    data: data
  })
}

// 删除操作员
export function delOplist(opid) {
  return request({
    url: '/system/oplist/' + opid,
    method: 'delete'
  })
}
